import request from '@/utils/request'

export function add(data) {
  return request({
    url: '/webSite/cart/add',
    method: 'post',
    data
  })
}

export function fastadd(data) {
  return request({
    url: '/webSite/cart/fastadd',
    method: 'post',
    data
  })
}

export function index() {
  return request({
    url: '/webSite/cart/index',
    method: 'get'
  })
}
export function checkout(data) {
  return request({
    url: '/webSite/cart/checkout',
    method: 'get',
    params: data
  })
}

export function remove(data) {
  return request({
    url: '/webSite/cart/delete',
    method: 'post',
    params: data
  })
}

export function update(data) {
  return request({
    url: '/webSite/cart/update',
    method: 'post',
    data
  })
}

